package com.ge.modules.sys.service.impl;

import com.ge.modules.dao.TbOrderDao;
import com.ge.modules.entity.TbOrderEntity;
import com.ge.modules.sys.service.SysOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class SysOrderServiceImpl implements SysOrderService {
	@Autowired
	private TbOrderDao tbOrderDao;
	
	@Override
	public TbOrderEntity queryObject(Integer id){
		return tbOrderDao.queryObject(id);
	}
	
	@Override
	public List<TbOrderEntity> queryList(Map<String, Object> map){
		return tbOrderDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return tbOrderDao.queryTotal(map);
	}
	
	@Override
	public void save(TbOrderEntity order){
		tbOrderDao.save(order);
	}
	
	@Override
	public void update(TbOrderEntity order){
		tbOrderDao.update(order);
	}
	
	@Override
	public void delete(Integer id){
		tbOrderDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		tbOrderDao.deleteBatch(ids);
	}

	@Override
	public TbOrderEntity queryById(Integer id) {
		return tbOrderDao.queryById(id);
	}

	@Override
	public void updateBatch(Integer[] ids) {
		tbOrderDao.updateBatch(ids);
	}

}
